package com.innjia.sys.service.impl;

import com.innjia.base.utils.Utils;
import com.innjia.sys.dao.HouseAuthImageDao;
import com.innjia.sys.entity.HouseAuthImageEntity;
import com.innjia.sys.service.HouseAuthImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("houseAuthImageService")
public class HouseAuthImageServiceImpl implements HouseAuthImageService {
	@Autowired
	private HouseAuthImageDao houseAuthImageDao;
	
	@Override
	public HouseAuthImageEntity queryObject(String id){
		return houseAuthImageDao.queryObject(id);
	}
	
	@Override
	public List<HouseAuthImageEntity> queryList(Map<String, Object> map){
		return houseAuthImageDao.queryList(map);
	}

    @Override
    public List<HouseAuthImageEntity> queryListByBean(HouseAuthImageEntity entity) {
        return houseAuthImageDao.queryListByBean(entity);
    }
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return houseAuthImageDao.queryTotal(map);
	}
	
	@Override
	public int save(HouseAuthImageEntity houseAuthImage){
		houseAuthImage.setId(Utils.uuid());
		return houseAuthImageDao.save(houseAuthImage);
	}
	
	@Override
	public int update(HouseAuthImageEntity houseAuthImage){
        return houseAuthImageDao.update(houseAuthImage);
	}
	
	@Override
	public int delete(String id){
        return houseAuthImageDao.delete(id);
	}
	
	@Override
	public int deleteBatch(String[] ids){
        return houseAuthImageDao.deleteBatch(ids);
	}

	@Override
	public List<HouseAuthImageEntity> queryListByHouseId(String id) {
		return houseAuthImageDao.queryListByHouseId(id);
	}
	
}
